#include <iostream>
#include <stdlib.h>
using namespace std;
int main()
{
    string cadena;
    cin>>cadena;
    while(cadena !="salir")
    {
        system ("color 4f");
        cout<<cadena.length();
        cin>>cadena;
    }return 1;
}
